package org.jackysoft.struts2;
import java.util.Collection;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.SystemService;
import org.jackysoft.service.SystemServiceService;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;



@Namespace("/systemservice")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class SystemServiceAction 
extends UtilsCRUDAction<SystemService> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9109849831403599618L;
	private SystemServiceService service;
	private SystemService bean;
	private Collection<SystemService> beans;
	
	
	
	public void setBean(SystemService bean){
	     this.bean = bean;
	}
	public SystemService getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<SystemService> beans){
	
	     this.beans = beans;
	}
	public Collection<SystemService> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(SystemServiceService service) {
		this.service = service;
		this.setDataProvider(service);
	}	
	
	public SystemServiceService getService(){
	   return this.service;
	}
		
}